using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Responses.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Responses
{
	public static class OnlineCustomerDiscountsExtend
{
		public static ResponseOnlineCustomerDiscountsDto ToResponseDto(this OnlineCustomerDiscounts entity)
{			return new ResponseOnlineCustomerDiscountsDto
			{
				id = entity.OcdId,
				onlineCustomerId = entity.OcdOnlineCustomerId,
				discountId = entity.OcdDiscountId,
				isUsed = entity.OcdIsUsed,
				outTime = entity.OcdOutTime,
				createTime = entity.OcdCreateTime,
			};
		}
	}
}
